package com.liu.demo.exception;

/**
 * 关于异常的枚举类
 */
public enum REnum {
    UNKOWN_ERR(-999,"未知错误！"),
    COMMON_ERR(-10,"一般错误！"),
    LOGIN_ERR(-1,"用户名或密码错误！"),
    SUCCESS(200,"成功！");

    private Integer code;
    private String msg;

    REnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode(){
        return this.code;
    }
    public String getMsg(){
        return this.msg;
    }
}
